/*
 * =====================================================================================
 *
 *       Filename:  bigsmallendian.cpp
 *
 *    Description:  how to check if it is small/big endian
 *
 *        Version:  1.0
 *        Created:  12-04-09 12:18:18 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  YOUR NAME (), 
 *   Organization:  
 *
 * =====================================================================================
 */
#include <stdlib.h>
#include <iostream>

using namespace std;

int main(){
	int a = 0x1;

	if((unsigned char)a == 1)
		cout << "big endian"<<endl;
	else
		cout << "small endian" <<endl;

	return 1;
}
